import re
import traceback
from datetime import datetime, timedelta

from common import constants
from common.log import logger
from knowledge_base.knowledge_embedding import BGEQuery


def get_next_day_start():
    current_time = datetime.now()
    # 计算第二天的日期
    next_day = current_time + timedelta(days=1)
    # 将时间调整到第二天的 0 点
    next_day_midnight = datetime(next_day.year, next_day.month, next_day.day, 0, 0, 0)

    # 获取时间戳（秒级别）
    timestamp = int(next_day_midnight.timestamp())
    return timestamp
